projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db56f2c
)
update_autogen: Improve error handling slightly
author
Stefan Kangas
<stefan@marxist.se>
Thu, 2 Dec 2021 17:30:16 +0000
(18:30 +0100)
committer
Stefan Kangas
<stefan@marxist.se>
Thu, 2 Dec 2021 17:32:54 +0000
(18:32 +0100)
* admin/update_autogen: Check exit status of cd. Use single
quoting for trap condition.
admin/update_autogen
patch
|
blob
|
history
diff --git
a/admin/update_autogen
b/admin/update_autogen
index 2b6a46051cb391208cea7ee6fc4355ba798367fd..99297a9c0dc9331c1012d8971e45e0e03d1b6915 100755
(executable)
--- a/
admin/update_autogen
+++ b/
admin/update_autogen
@@
-44,7
+44,7
@@
PD=${0%/*}
[ "$PD" = "$0" ] && PD=. # if PATH includes PWD
## This should be the admin directory.
-cd $PD
+cd $PD
|| exit
cd ../
[ -d admin ] || die "Could not locate admin directory"
@@
-102,7
+102,7
@@
done
tempfile=/tmp/$PN.$$
-trap
"rm -f $tempfile 2> /dev/null"
EXIT
+trap
'rm -f $tempfile 2> /dev/null'
EXIT
while getopts ":hcfqA:CL" option ; do